class Point {
    double x, y, z;

    public Point(double X, double Y, double Z) {
        x = X;
        y = Y;
        z = Z;
    }
    public double GetJuLi(Point A) {
        return Math.sqrt((x - A.x) * (x - A.x) + (y - A.y) * (y - A.y) + ((z - A.z) * (z - A.z)));
    }
}
public class SanWeiJuLi3 {
    public static void main(String[] args){
        Point A=new Point(1.0,2.0,3.3);
        Point B=new Point(1.6,2.8,3.3);
        System.out.println(B.GetJuLi(A));
    }
}
